﻿namespace PLCS.Domain.PLCConfigs;

public interface IPLCReadDataRepository : IRepository<PLCReadData, Guid>
{
    Task<PLCReadData?> FindPLCReadDataByNoAsync(string no);

    Task ChangeValueAsync(Guid Id, string value);

    Task<IEnumerable<PLCReadData>> GetPLCReadDatasListAsync();

    Task DeleteAllAsync();

    Task UpdateManyOnlyCurrentValueAsync(IEnumerable<PLCReadData> pLCReadDatas, bool autoSave = false, CancellationToken cancellationToken = default);
}